package com.yonyou.wdt.exception;

public class ApiException extends RuntimeException {
    private ApiCodeEnum codeEnum;

    public ApiException() {}

    public ApiException(ApiCodeEnum codeEnum) {
        super(codeEnum.getMessage());
        this.codeEnum = codeEnum;
    }

    public ApiCodeEnum getCodeEnum() {
        return this.codeEnum;
    }
}
